home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- prefix="/usr/local/k3d"
- exec_prefix="${prefix}"
-
- libdir="${exec_prefix}/lib"
- addlibs="-L/local/lib -lglib-2.0 -lgtk -lgdk -lgmodule-2.0 -LC:/romain/msys/local/lib -lsigc-2.0 "
- includedir="-I${prefix}/include/k3d -I${prefix}/include/k3d/boost"
- addincludes="-I/local/include -I/local/include/gtk -I/local/include/gdk -I/local/include/glib-2.0 -I/local/lib/gtk+/include -I/local/lib/glib-2.0/include -IC:/romain/msys/local/include/sigc++-2.0 -IC:/romain/msys/local/lib/sigc++-2.0/include -DK3D_HAVE_SIGC_2_0"
-
- package="k3d"
- version="0.4.2.1"
-
- usage()
- {
- cat <<EOF
- Usage: $0 [OPTIONS]
- Options:
- [--cflags]
- [--embed-libs]
- [--libs]
- [--prefix]
- [--ui-libs]
- [--version]
- EOF
- exit $1
- }
-
- if test $# -eq 0; then
- usage 1 1>&2
- fi
-
- while test $# -gt 0; do
-
- case "$1" in
- -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
- *) optarg= ;;
- esac
-
- case "$1" in
- --prefix=*)
- prefixdirectory=$optarg
- ;;
- --prefix)
- echo_prefix=yes
- ;;
- --cflags)
- echo_cflags=yes
- ;;
- --libs)
- echo_libs=yes
- ;;
- --embed-libs)
- echo_embed_libs=yes
- ;;
- --ui-libs)
- echo_ui_libs=yes
- echo_embed_libs=yes
- ;;
- --version)
- echo $version
- ;;
- esac
- shift
- done
-
- if test "$echo_prefix" = "yes"; then
- echo $prefix
- fi
-
- if test "$echo_cflags" = "yes"; then
- echo $includedir $addincludes
- fi
-
- if test "$echo_libs" = "yes" || test "$echo_embed_libs" = "yes" || test "$echo_ui_libs" = "yes"; then
- echo -n "-L$libdir "
-
- if test "$echo_ui_libs" = "yes"; then
- echo -n "-lk3dui "
- fi
-
- if test "$echo_embed_libs" = "yes"; then
- echo -n "-lk3dembed "
- fi
-
- echo "-lk3dsdk -lsdpgtk -lsdpgl -lsdpsl -lsdpxml $addlibs"
- fi
-
-